import { Injectable } from '@angular/core';
// import { API_URL } from '../const/base.const';
import { HttpService } from './http.service';
import { API_URL } from '../const/base.const';

@Injectable({
  providedIn: 'root'
})
export class ActionTypeService {

  constructor(private $http: HttpService) {
  }

  getActionTypes() {
    return this.$http.get(API_URL.ACTION_TYPE);
  }

  // getCaseById(id: number) {
  //   return this.$http.get(`${API_URL.ACTION_TYPE}/${id}`);
  // }

  //保存数据
  // postCase(data: any) {
  //   return this.$http.post(API_URL.ACTION_TYPE, data);
  // }

  // updateCase(id: number, data: any) {
  //   return this.$http.patch(`${API_URL.ACTION_TYPE}/${id}`, data);
  // }

  // deleteCase(id: number) {
  //   return this.$http.delete(`${API_URL.ACTION_TYPE}/${id}`);
  // }


}
